/**
 * @(#)MonitorFlagBean.java 2017年5月5日
 * Copyright(C) 2017年5月5日 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.domian.monitor;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 监控内容类
 * @author <a href="mailto:zhouchao@zhexinit.com" >周超</a>
 * @version 1.0.0
 */
public class MonitorFlagBean {
	public static final Logger LOGGER = LoggerFactory.getLogger(MonitorFlagBean.class);

	public static final int ERROR=1;
	public static final int OK=0;
	
	private long id;
	private String monitorName;
	/**
	 * 0表示正常，1表示不正常
	 */
	private int flag;
	private String okMsg;
	private String errorMsg;
	private int type;
	private String remark;
	private String operation;
	private long dataNum;
	private String msg;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getMonitorName() {
		return monitorName;
	}
	public void setMonitorName(String monitorName) {
		this.monitorName = monitorName;
	}
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	public String getOkMsg() {
		return okMsg;
	}
	public void setOkMsg(String okMsg) {
		this.okMsg = okMsg;
	}
	public String getErrorMsg() {
		return errorMsg;
	}
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getOperation() {
		return operation;
	}
	public void setOperation(String operation) {
		this.operation = operation;
	}
	public long getDataNum() {
		return dataNum;
	}
	public void setDataNum(long dataNum) {
		this.dataNum = dataNum;
	}
	
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	public boolean isOk(){
		return flag==OK;
	}
	
	
}
